package net.bwie.realtime.gd.utils2;

import java.util.Properties;

public class  DebeziumPropertiesUtil {


   public static Properties getProperties(){
       Properties properties = new Properties();
       properties.setProperty("converters", "dateConverters");
       //根据类在那个包下面修改
       properties.setProperty("dateConverters.type", "com.bw.util.MySqlDateTimeConverter");
       properties.setProperty("dateConverters.format.date", "yyyy-MM-dd");
       properties.setProperty("dateConverters.format.time", "HH:mm:ss");
       properties.setProperty("dateConverters.format.datetime", "yyyy-MM-dd HH:mm:ss");
       properties.setProperty("dateConverters.format.timestamp", "yyyy-MM-dd HH:mm:ss");
       properties.setProperty("dateConverters.format.timestamp.zone", "UTC+8");
       properties.setProperty("debezium.snapshot.locking.mode","none"); //全局读写锁，可能会影响在线业务，跳过锁设置
       properties.setProperty("include.schema.changes", "true");
       properties.setProperty("bigint.unsigned.handling.mode","long");
       properties.setProperty("decimal.handling.mode","double");
       return properties;
   }


}
